<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <heima :project="zxy"></heima>
</div>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    const heima = {
        props:{
            project:{
                type:Array,
                default:[]
            }
        },
        template: `<div>
       <ul>
       <li v-for="p in project">
       {{p.name}}+{{p.age}}+{{p.haha}}
 </li>
</ul>
        </div>
        `
    };
    let vm = new Vue({
        el: "#app",
        data:{
            zxy:[{
              name:"张学友",
              age:18,
              haha:"唱歌最好"
          },{
                name:"刘德华",
                age:18,
                haha:"演戏最好"
            },{
                name:"郭富城",
                age:18,
                haha:"装逼最好"
            },
            ]
        },
        components: {
            heima
        }
    })
</script>
</body>
</html>